#ifndef IOPERATION_H
#define IOPERATION_H

class IOperation {
public:
    virtual ~IOperation() = default;

    virtual int add(int a, int b) const = 0;
    virtual int subtract(int a, int b) const = 0;
    virtual int multiply(int a, int b) const = 0;
    virtual int divide(int a, int b) const = 0; // 应处理除零异常
};

#endif // IOPERATION_H